package com.example.flower_shop.vo.order;

import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

@Data
public class CreateOrderReq {
    @NotBlank(message = "预下单单号不能为空")
    @Schema(description = "预下单单号")
    private String preOrderNo;
    @NotBlank(message = "支付方式不能为空")
    @Schema(description = "支付方式 1-wechat 2-alipay")
    private String payType;
    @NotNull(message = "快递类型不能为空")
    @Range(min = 1, max = 2, message = "未知的快递类型")
    @Schema(description = "1-快递 2-自提")
    private Integer shippingType;
    @Schema(description = "收货地址ID")
    private Long addressId;
    @Schema(description = "备注")
    private String mark;
    @Schema(description = "自提人姓名")
    private String realName;
    @Schema(description = "自提人电话")
    private String phone;
}
